<?php

include("../lib/db.lib");
include("../lib/std.lib");

$shop_id=param("shop_id");

$cat_id=param("cat_id");
$dest_cat_id=param("dest_cat_id");

cat_move($shop_id,$cat_id,$dest_cat_id);
$title1=cat_get_title($shop_id,$cat_id);
$title2=cat_get_title($shop_id,$dest_cat_id);

$str.="Catalog <i>$title1</i> is moved to <i>$title2</i> <br>\n";

redirect(" $str ","./p_cat_show.php?cat_id=$dest_cat_id");

?>
